package com.tgpms.web.earlierStage.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.tgpms.web.earlierStage.entity.TaskDefinitionTemplate;

/**
 * 表TASK_DEFINITION_TEMPLATE -> 任务分解模板 的基本功能实现
 *
 * @author DESKTOP-E5IU1J8
 * @createDate 2020/04/27
 */
public interface TaskDefinitionTemplateMapper {

	//删除下级模板
	@Delete("delete from TASK_DEFINITION_TEMPLATE where TASK_CODE like '${taskCode}%'")
	int deleteTaskDefinitionTemplateByCode(@Param("taskCode")String taskCode);

	//按条件查询任务分解模板
	List<TaskDefinitionTemplate> selTaskDefinitionTemplate(@Param("map")Map<String, Object> map);
	/**
	 * 任务分解模板  deleteByPrimaryKey 实现
	 * 
	 * @param taskId
	 * @return null int
	 * @author: DESKTOP-E5IU1J8
	 * @createDate: 2020-04-27 22:13:36
	 */
	int deleteByPrimaryKey(String taskId);

	/**
	 * 任务分解模板  insert 实现
	 * 
	 * @param record
	 * @return null int
	 * @author: DESKTOP-E5IU1J8
	 * @createDate: 2020-04-27 22:13:36
	 */
	int insert(TaskDefinitionTemplate record);

	/**
	 * 任务分解模板  insertSelective 实现
	 * 
	 * @param record
	 * @return null int
	 * @author: DESKTOP-E5IU1J8
	 * @createDate: 2020-04-27 22:13:36
	 */
	int insertSelective(TaskDefinitionTemplate record);

	/**
	 * 任务分解模板  selectByPrimaryKey 实现
	 * 
	 * @param taskId
	 * @return null com.tgpms.web.earlierStage.entity.TaskDefinitionTemplate
	 * @author: DESKTOP-E5IU1J8
	 * @createDate: 2020-04-27 22:13:36
	 */
	TaskDefinitionTemplate selectByPrimaryKey(String taskId);

	/**
	 * 任务分解模板  updateByPrimaryKeySelective 实现
	 * 
	 * @param record
	 * @return null int
	 * @author: DESKTOP-E5IU1J8
	 * @createDate: 2020-04-27 22:13:36
	 */
	int updateByPrimaryKeySelective(TaskDefinitionTemplate record);

	/**
	 * 任务分解模板  updateByPrimaryKey 实现
	 * 
	 * @param record
	 * @return null int
	 * @author: DESKTOP-E5IU1J8
	 * @createDate: 2020-04-27 22:13:36
	 */
	int updateByPrimaryKey(TaskDefinitionTemplate record);
}